/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package webClient;

/**
 *
 * @author User
 */


    
    
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
public class SocketTowebClient
{
     public static void data (String str) throws MalformedURLException, IOException {
        String S;
      
                S="http://localhost:7777/?" + str;
     
        URL hp = new URL(S);
        URLConnection hpCon = hp.openConnection();
        hpCon.connect();

        if (hpCon.getContentLength() > 0) {
            InputStream input = hpCon.getInputStream();
            int i=hpCon.getContentLength();
            input.close();
        } else {
            
        }
    }
}